import request from '@/utils/request'

// 查询异常通知人员列表
export function listNotification(query) {
  return request({
    url: '/mes/pro/exception/notification/list',
    method: 'get',
    params: query
  })
}

// 查询异常通知人员详细
export function getNotification(id) {
  return request({
    url: '/mes/pro/exception/notification/' + id,
    method: 'get'
  })
}

// 新增异常通知人员
export function addNotification(data) {
  return request({
    url: '/mes/pro/exception/notification',
    method: 'post',
    data: data
  })
}

// 修改异常通知人员
export function updateNotification(data) {
  return request({
    url: '/mes/pro/exception/notification',
    method: 'put',
    data: data
  })
}

// 删除异常通知人员
export function delNotification(id) {
  return request({
    url: '/mes/pro/exception/notification/' + id,
    method: 'delete'
  })
}
